package com.bifang.common.constant.enums.common;
/** 申请类型类型 */
public enum ApplyTypeEnum {
    app("1", "APP"),
    h5("2", "h5"),
    weixin("3", "微信小程序"),
    alipay("4", "支付宝"),
    dingding("5", "钉钉小程序"),
    zlb("6", "浙里办"),
    zlb_rcm("7", "浙里办人才码"),
    ohter("9", "其他"),
    ;

    private String type;
    private String text;

    ApplyTypeEnum(String type, String text) {
        this.type = type;
        this.text = text;
    }

    public String getType() {
        return this.type;
    }

    public String getText() {
        return this.text;
    }

    public static ApplyTypeEnum getByType(String type) {
        for (ApplyTypeEnum typeEnum : values()) {
            if (typeEnum.getType().equalsIgnoreCase(type)) {
                return typeEnum;
            }
        }
        return null;
    }
}
